I am facing issue if app not installed on phone getting this message on alert "Safari cannot open the page because the address is invalid." I want to bypass this alert and show my custom alert message. I am using this for open then app.
(function () {
var app = {
launchApp: function () {
window.location = "com.test://scan?code=1";
this.timer = setTimeout(this.openWebApp, 500);
}
};
app.launchApp();
})();